package com.twu.biblioteca;

import java.util.Collection;
import java.util.LinkedList;

public class MovieRepository {

    private final Collection<Movie> movies = new LinkedList<Movie>();

    public void add(Movie movie) {
        if (movies.contains(movie) == false) {
            movies.add(movie);
        }
    }

    public Collection<Movie> findAll() {
        return movies;
    }

}
